package com.lww.springcloudapi.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import com.lww.springcloudapi.entity.parent.ParentEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 刮刮卡活动异动表
 * </p>
 *
 * @author SHEN
 * @since 2021-03-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor //无参构造
@Accessors(chain = true) //链式编程
@ApiModel(value = "TabGgcardLog对象", description = "刮刮卡活动异动表")
public class TabGgcardLog extends ParentEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableLogic   //逻辑删除
    private Integer deleted;

    @ApiModelProperty(value = "地区编码")
    @TableField("AREAID")
    private String areaid;

    @ApiModelProperty(value = "旧归属点")
    @TableField("OLD_DEPT")
    private String oldDept;

    @ApiModelProperty(value = "新归属点")
    @TableField("NEW_DEPT")
    private String newDept;

    @ApiModelProperty(value = "操作类型（tab_code表codetype=’ SrvFun）")
    @TableField("ORDERTYPE")
    private String ordertype;

    @ApiModelProperty(value = "数量")
    @TableField("COUNT")
    private Integer count;

    @ApiModelProperty(value = "操作员")
    @TableField("OPTRID")
    private String optrid;

    @ApiModelProperty(value = "受理点")
    @TableField("ACPTSITEID")
    private String acptsiteid;

    @ApiModelProperty(value = "操作时间")

    @DateTimeFormat(pattern = "yyyy-MM-dd")
//    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
//    @JSONField(format = "yyyy-MM-dd")
    @TableField(value = "OPTRDATE", fill = FieldFill.INSERT_UPDATE)
    private Date optrdate;

    @ApiModelProperty(value = "流水号")
    @TableField("TRANSN")
    private String transn;


}
